#ifndef _STM32F4_BASIC_FUNC_H_
#define _STM32F4_BASIC_FUNC_H_

#include "stm32f4xx.h"
#include "stdio.h"
#include "string.h"
#include "stdint.h"
#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "FreeRTOS.h"
#include "task.h"

#define OFF 0
#define ON  1
#define LOW     OFF
#define HIGH    ON
#define Sys_Soft_Reset()    do{SCB->AIRCR =0X05FA0000|0x04;}while(0)


typedef enum 
{
    false,
    true,
} bool,BOOL;


#include "./usart/usart.h"
#include "./delay/delay.h"
#include "./sys/sys.h"

#define sys_delay_ms(ms)    delay_xms(ms)
#define sys_delay_us(us)    delay_us(us)

// inline Sys_Soft_Reset(void)
// {   
// 	SCB->AIRCR =0X05FA0000|(u32)0x04;	  
// } 


#endif
